<!doctype html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta property="og:title" content="">
  <meta property="og:type" content="">
  <meta property="og:url" content="">
  <meta property="og:image" content="">
  <meta name="theme-color" content="#fafafa">
</head>

<body>

  <script src="js/Popper.js"></script>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <script src="js/jquery-3.4.1.js"></script>
  <script src="js/bootstrap.min.js"></script>

  <script src="js/axios.js"></script>
  <script type="text/javascript" src="js/vue.js"></script>

  <div id="app">
    <div class="no-padding border-bottom">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <ol class="breadcrumb breadcrumb-finance">
              <li><a href="vulnerabilityList.html"> <i class="fa fa-home" aria-hidden="true"></i> 主页</a></li>
              <li class="active" id="dropdownmune">表增加数据</li>
            </ol>
          </div><!--  End col -->
        </div><!-- End Row -->
      </div><!-- End container -->
    </div>
  </div>

  <!--  End Section -->

  <div class="line"></div>

  <div style="margin-top: 50px" class="container">

    <form id="addForm" class="form-horizontal" role="form" method="POST">
      <div class="form-group">
        <label for="v_id" class="col-sm-2 control-label">v_id</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="v_id" name="v_id">
        </div>
      </div>

      <div class="form-group">
        <label for="name" class="col-sm-2 control-label">name</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="name" name="name">
        </div>
      </div>

      <div class="form-group">
        <label for="cnvd_id" class="col-sm-2 control-label">cnvd_id</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="cnvd_id" name="cnvd_id">
        </div>
      </div>

      <div class="form-group">
        <label for="disclosure_date" class="col-sm-2 control-label">disclosure_date</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="disclosure_date" name="disclosure_date">
        </div>
      </div>

      <div class="form-group">
        <label for="hazard_level" class="col-sm-2 control-label">hazard_level</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="hazard_level" name="hazard_level">
        </div>
      </div>

      <div class="form-group">
        <label for="impact_products" class="col-sm-2 control-label">impact_products</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="impact_products" name="impact_products">
        </div>
      </div>

      <div class="form-group">
        <label for="cve_id" class="col-sm-2 control-label">cve_id</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="cve_id" name="cve_id">
        </div>
      </div>

      <div class="form-group">
        <label for="description" class="col-sm-2 control-label">description</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="description" name="description">
        </div>
      </div>

      <div class="form-group">
        <label for="v_type" class="col-sm-2 control-label">v_type</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="v_type" name="v_type">
        </div>
      </div>

      <div class="form-group">
        <label for="reference" class="col-sm-2 control-label">reference</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="reference" name="reference">
        </div>
      </div>

      <div class="form-group">
        <label for="solution" class="col-sm-2 control-label">solution</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="solution" name="solution">
        </div>
      </div>

      <div class="form-group">
        <label for="vendor_patch" class="col-sm-2 control-label">vendor_patch</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="vendor_patch" name="vendor_patch">
        </div>
      </div>

      <div class="form-group">
        <label for="verification_info" class="col-sm-2 control-label">verification_info</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="verification_info" name="verification_info">
        </div>
      </div>

      <div class="form-group">
        <label for="reporting_date" class="col-sm-2 control-label">reporting_date</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="reporting_date" name="reporting_date">
        </div>
      </div>

      <div class="form-group">
        <label for="collection_date" class="col-sm-2 control-label">collection_date</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="collection_date" name="collection_date">
        </div>
      </div>

      <div class="form-group">
        <label for="update_date" class="col-sm-2 control-label">update_date</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="update_date" name="update_date">
        </div>
      </div>

      <div class="form-group">
        <label for="attachment" class="col-sm-2 control-label">attachment</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="attachment" name="attachment">
        </div>
      </div>

      <div style="margin-left: 200px;margin-bottom: 150px">
        <button id="submit" class="btn btn-success" type="button">提交</button>
      </div>
    </form>


    <input type="button" onclick="getname()" />

    <script type="text/javascript" src="js/axios.js"></script>
    <script src="js/vue.js"></script>

    <script>
      $(function () {
        $('#submit').click(function () {
          axios.post('/ADUS/admin/insertOb.action', $("#addForm").serialize())
            .then(function (response) {
              console.log(response);
              var result = response.data;
              alert(result.data1);
              location.reload();
            });
          return true;
        })
      })
    </script>

    <script language="javascript">
      function getname() {
        var str = window.location.search;
        var pos = str.indexOf(dropdownmune);
        alert(str.substring(pos));
      }
    </script>




  </div>



</body>

</html>